﻿<%@ Page Language="C#"  AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Tambini.Web.Login" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Transfinter</title>
     <link  rel="Stylesheet"  type="text/css" href="../App_Themes/Default/Css.css"/>
     <link rel="Stylesheet" type="text/css" href="../App_Themes/Default/Control.css"/>
      <link rel="Stylesheet" type="text/css" href="../Styles/StyleMensajes.css"/>
</head>
 <script type="text/javascript">
    // <![CDATA[

     function ShowPopupLogin() {
          PopupLogin.Show();
      }
      

    // ]]> 
    </script>
<body>
    <form id="formLogin" runat="server">
 
        <div class="top-content">           
          <div class="top-sistema">
                <div class="top-item"><img src="../img/flecha.gif" alt="Usuario"/></div> 
                <div class="top-item">Sistema:</div>            
                <div class="top-item"><strong>Transfinter</strong></div> 
                <div class="top-item-r"><img src="../img/logout.gif" alt="Logout"/></div>          
                <div class="top-item-r"><strong>ACCESO AL SISTEMA</strong></div>                
          </div>
          
          <div id="menu">
              <ul style=" float:right; margin-right:15px">
              </ul>
          </div>  
            
         </div>
         <div style="clear:both" >
         
         
        



    <script type="text/javascript">
    // <![CDATA[

        function ShowPopupLogin() {
                PopupLogin.Show();

            }


    // ]]> 
    </script>










         <dx:ASPxPopupControl ID="PopupLogin" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupLogin" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" CssPostfix="Office2003Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
             Width="300px" EnableHotTrack="False">
                
                    

                    <loadingpanelimage url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                    

                    </loadingpanelimage>
                    

                    <HeaderStyle>

                    <paddings paddingright="6px" />
                    

                    </HeaderStyle>
                    

                    <contentcollection>
                    
                    <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" 
                        SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                    <panelcollection>
                        <dx:PanelContent ID="PanelContent2" runat="server">
                        <table>
                        <tr>
                        <td colspan="3" align="center" width="300px">
                        
                        
                        
                             <dx:ASPxLabel ID="lblmensajeuse" runat="server">
                             </dx:ASPxLabel>
                             <br />
                            <br />
                            </td>
                        
                        </tr>
                        <tr>
                        <td>
                        
                           
                        
                            </td>
                        <td align="center">
                        
                            <dx:ASPxButton ID="ASPxButton4" runat="server" AutoPostBack="False" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px">
                                <clientsideevents click="function(s, e) {
	PopupLogin.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                            <td>
                            </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </panelcollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
                    
                    </contentcollection>

                </dx:ASPxPopupControl>
         
         
         
         
         
         
         
         </div>
         <div class="main-login">
            
            <div class="login-content">
                
               <div class ="login-logo">
                    <img src="../img/logo.png" alt="logo" width="200px" height="57px" style="display:none"/>
               </div> 
               <asp:Panel ID="pnlMensaje" runat="server" CssClass="content-message">
                    <asp:Label ID="lblMensaje" runat="server" Text="Ingrese su usuario y password"></asp:Label>
               </asp:Panel>

               <asp:Panel runat="server" ID="pnlLogin">
                   <table cellpadding="0" cellspacing="0" border="0" class = "tb-login">
                        <tr>
                            <td>Usuario:</td>
                            <td><asp:TextBox ID="txtUsuario" runat="server" style="width:122px"></asp:TextBox></td>
                            <td>Password:</td>
                            <td><asp:TextBox ID="txtPassword" TextMode="Password" runat="server" style="width:122px"></asp:TextBox></td>
                            <td>
                                <dx:ASPxButton ID="btnIngresar" runat="server" Text="Ingresar" 
                                    onclick="btnIngresar_Click1">
                                </dx:ASPxButton>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="left" style="padding-top:15px">
                                <asp:LinkButton ID="btnClave" runat="server" onclick="btnClave_Click">Recuperar Contraseña</asp:LinkButton>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td colspan="2" align="right" style="padding-top:15px">
                                <asp:LinkButton ID="btnnuevocliente" runat="server" 
                                    onclick="btnnuevocliente_Click" Visible="False" >Registrar nuevo cliente</asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td align="right" colspan="2" height="15px">
                                &nbsp;</td>
                        </tr>
                   </table>              
                </asp:Panel>
                <asp:Panel runat="server" ID="pnlRecuperar" Visible="false">
                   <table cellpadding="0" cellspacing="0" border="0" class = "tb-login">
                        <tr>
                            <td>Email:</td>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server" style="width:260px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail"
                                Display="Dynamic" ErrorMessage="Email inválido" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                            </asp:RegularExpressionValidator>
                            </td>                            
                            <td><asp:Button ID="btnRecuperar" runat="server" Text="Recuperar" 
                                    onclick="btnRecuperar_Click"  /></td>
                            <td><asp:Button ID="btnCancelar" runat="server" Text="Cancelar" 
                                    onclick="btnCancelar_Click"  /></td>
                           
                        </tr>
                   </table>  
                </asp:Panel>
            </div>
        </div>
        <div style="clear:both;"></div>
        <div class="footer-content" style="position:absolute; bottom:0">
             <p style="float:left">&copy; 2013 <a href="#">Transfinter</a>, Todos los Derechos Reservados&reg;</p>
             <p style="float:right"><a>Departamento de Sistemas</a></p>
        </div>  
 
    </form>
</body>
</html>
